# result = ''.join([item[0] for item in pinyin('重庆1路', style=Style.TONE)])
# print(result)
set_list = {"open","abc"}
set_4list = []
set_3list = []
for item in set_list:
    lang = len(item)
    if lang == 4:
        set_4list.append(item)
    if lang == 3:
        set_3list.append(item)

print(set_3list)
# main.chinese_to_set_func("田螺塘一一巷")
# str="Gǎngkǒuqizuò"
# lang = len("qizuò")
# lastStr = str[-lang:]
# print(lastStr)
# lastStr = lastStr[-(lang-2):]
#
# print(lastStr)
#
# # str = "Gǎngkǒuqizuò"
# # lang = len("qizuò")
# # parts = str.split("qizuò")
# # result = parts[-1]  # 取最后一个部分
# # print(result)
#
# str = "Gǎngkǒuqizuò"
# last_part = str.split("qizuò")[-1]
# print(last_part)
# main.chinese_to_set_func("田螺塘十六巷")
# main.chinese_to_set_func("田螺塘一巷")
# main.chinese_to_set_func("田螺塘二巷")
# main.chinese_to_set_func("田螺塘三十巷")
# list=[]
# for i in range(4):
#     list.append(f"田螺塘{i}巷")
#
# print(list[0])
# endStr = ""


# import openpyxl
#
# # 打开工作簿
# import main
#
# workbook = openpyxl.load_workbook(r'D:\Window\新亨2test.xlsx')
# excelStrLine = 'B'
# excelPyLine = 'D'
#
# # 获取工作表
# sheet = workbook['Sheet1']
#
# # 读取单元格数据
# b_column_data = []
#
# # 遍历文字列，判断是否为空
# for index, cell in enumerate(sheet[f'{excelStrLine}']):
#     if cell.value == "#N/A":
#         # 往数组里面存储拼音栏为空的 index和对应 中文信息
#         b_column_data.append((index + 1, cell.value))
#
# # 遍历数组内容
# for index, vales in b_column_data:
#     cell_value = sheet[f'{excelPyLine}{index}'].value
#     print(cell_value)
#
#     pyStr = main.chinese_to_set_func(cell_value)
#     print(pyStr)
#     sheet.cell(row=4, column=index, value=pyStr)
#
# # 关闭Excel文件
# workbook.save(r'D:\Window\新亨11112test.xlsx')


